package com.atguigu.tingshu.album.service;

import com.atguigu.tingshu.model.album.TrackInfo;
import com.atguigu.tingshu.query.album.TrackInfoQuery;
import com.atguigu.tingshu.vo.album.AlbumTrackListVo;
import com.atguigu.tingshu.vo.album.TrackListVo;
import com.atguigu.tingshu.vo.album.TrackOrderVo;
import com.atguigu.tingshu.vo.album.TrackStatMqVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface TrackInfoService extends IService<TrackInfo> {

    void saveTrackInfo(TrackInfo trackInfo);

    Page<TrackListVo> findUserTrackPage(Long pageNum, Long pageSize, TrackInfoQuery trackInfoQuery);

    void removeTrackInfo(Long id);

    TrackInfo getTrackInfo(Long id);

    void updateTrackInfo(Long id, TrackInfo trackInfo);

    Page<AlbumTrackListVo> findAlbumTrackPage(Long albumId, Long pageNum, Long pageSize);

    void updateTrackStat(TrackStatMqVo vo);

    List<TrackOrderVo> findUserTrackPaidList(Long trackId);
}
